package com.kimwu.design.abstracts.factory.factory.impl;

import com.kimwu.design.abstracts.factory.factory.Factory;
import com.kimwu.design.abstracts.factory.product.Fruit;
import com.kimwu.design.abstracts.factory.product.Vegetable;
import com.kimwu.design.abstracts.factory.product.impl.NorthFruit;
import com.kimwu.design.abstracts.factory.product.impl.NorthVegetable;

/**
 * 具体类：北方产品工厂
 */
public class NorthProductFactory implements Factory {
    @Override
    public Fruit createFruit() {
        return new NorthFruit();
    }

    @Override
    public Vegetable createVegetable() {
        return new NorthVegetable();
    }
}